//
//  UIView+MYX_IBUIView.m
//  meiyinxiang
//
//  Created by 陈李飞 on 2017/11/4.
//  Copyright © 2017年 hbjApple. All rights reserved.
//

#import "UIView+MYX_IBUIView.h"

@implementation UIView (MYX_IBUIView)

/**
 
 * 设置边框宽度
 
 *
 
 */

- (void)setBorderWidth:(CGFloat)borderWidth

{
    
    if(borderWidth <0) return;
    
    self.layer.borderWidth = borderWidth;
    
}


/**
 
 * 设置边框颜色
 
 */

- (void)setBorderColor:(UIColor *)borderColor

{
    
    self.layer.borderColor = borderColor.CGColor;
    
}


/**
 
 *  设置圆角
 
 */

- (void)setCornerRadius:(CGFloat)cornerRadius

{
    
    self.layer.cornerRadius = cornerRadius;
    
    self.layer.masksToBounds = cornerRadius >0;
    
}
@end
